/** Appointment */
package edu.gatech.datastorage;

import java.io.Serializable;

/**
 * @author Courtney
 * @version 1.0
 */
public class Appointment implements Serializable{
	
   /**
	 * 
	 */
	private static final long serialVersionUID = 6738809293793053302L;

/**
    * The time and date of appointment
    */
   private String time, date;

   /**
    * The reason for creating an appointment
    */
   private String reasonForVisit;

   /**
    * preferred doctor to visit
    */
   private String preferredDoctor;

   /**
    * @param reasonForVisit
    * @param time
    * @param date
    * @param preferredDoctor
    */
   public Appointment(String reasonForVisit,
           String time, String date, String preferredDoctor) {
         this.time = time;
         this.date = date;
         this.reasonForVisit = reasonForVisit;
         this.preferredDoctor = preferredDoctor;
   }

   /**Edits an appointment
    * 
    * @param reasonForVisit
    * @param time
    * @param date
    * @param preferredDoctor
    */
   public void editAppointment(String reasonForVisit,
           String time, String date, String preferredDoctor) {
	   this.time = time;
       this.date = date;
       this.reasonForVisit = reasonForVisit;
       this.preferredDoctor = preferredDoctor;
   }
   
   /**
    * @return date
    */
   public String toString(){
       return "Date: " + date + " Time: " + time;
   }

   /**
    * @return the time
    */
   public String getTime() {
       return time;
   }

   /**
    * @param time the time to set
    */
   public void setTime(String time) {
       this.time = time;
   }

   /**
    * @return the date
    */
   public String getDate() {
       return date;
   }

   /**
    * @param date the date to set
    */
   public void setDate(String date) {
       this.date = date;
   }

   /**
    * @return the reasonForVisit
    */
   public String getReasonForVisit() {
       return reasonForVisit;
   }

   /**
    * @param reasonForVisit the reasonForVisit to set
    */
   public void setReasonForVisit(String reasonForVisit) {
       this.reasonForVisit = reasonForVisit;
   }

   /**
    * @return the preferredDoctor
    */
   public String getPreferredDoctor() {
       return preferredDoctor;
   }

   /**
    * @param preferredDoctor the preferredDoctor to set
    */
   public void setPreferredDoctor(String preferredDoctor) {
       this.preferredDoctor = preferredDoctor;
   }
}